package com.axjy.yycg.web;

import com.axjy.yycg.pojo.Sysuser;
import com.axjy.yycg.service.SysuserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class SysuserHandler {
    @Resource
    private SysuserService sysuserService;

    @GetMapping("/sysuser")
    public List<Sysuser> list(){

        return sysuserService.list();
    }

}
